public class J2411261 {
    public static void main(String[] args) {
        MyLinkedList myLinkedList1 = new MyLinkedList();
        myLinkedList1.addFirst(12);
        myLinkedList1.addFirst(23);
        myLinkedList1.addFirst(34);
        myLinkedList1.addFirst(45);
        myLinkedList1.addFirst(56);
        myLinkedList1.display();
        MyLinkedList myLinkedList2 = new MyLinkedList();
        myLinkedList2.addLast(12);
        myLinkedList2.addLast(23);
        myLinkedList2.addLast(34);
        myLinkedList2.addLast(45);
        myLinkedList2.addLast(56);
        myLinkedList2.addLast(56);
        myLinkedList2.display();
        myLinkedList1.addIndex(4,66);
        myLinkedList1.display();
        myLinkedList2.remove(56);
        myLinkedList2.display();
        myLinkedList2.clear();
        myLinkedList2.display();
    }
}
